<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>EL与四种属性范围</title>
</head>
<body>
<%	// 实现四种属性内容的设置，同时保证属性的名称相同
    pageContext.setAttribute("message", "【Page属性】www.yootk.com");
    request.setAttribute("message", "【Request属性】www.yootk.com");
    session.setAttribute("message", "【Session属性】www.yootk.com");
    application.setAttribute("message", "【Application属性】www.yootk.com");
%>
<h1>${message}</h1>

<hr>

<h1>获取Page属性内容：${pageScope.message}</h1>
<h1>获取Request属性内容：${requestScope.message}</h1>
<h1>获取Session属性内容：${sessionScope.message}</h1>
<h1>获取Application属性内容：${applicationScope.message}</h1>
</body>
</html>
